package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.List;

/**
 * 微信配置信息，微信公众号、小程序
 */
@Getter
@Setter
@Document(collection = "wechat_config_info")
public class WechatConfigInfo extends EntityBase {
    /**
     * 应用
     */
    @Indexed(unique = true)
    private String appId;

    /**
     *
     */
    private String appSecret;
    /**
     * 商户号ID
     */
    private List<String> merchantIds = new ArrayList<>();
    /**
     * 商户号ID
     */
    private String merchantId;


    /**
     * kk
     */
    private String desc;
    /**
     * cc
     */
    private String cc;
    /**
     * 描述
     */
    private String description;
    /**
     * logo
     */
    private String logoUrl;
    /**
     * 名称
     */
    private String name;
    /**
     * 所有用过商户号ID
     */
    private List<String> usedMerchantIds = new ArrayList<>();
    /**
     * 是否用作授权
     */
    @Indexed
    private Boolean usedAuthorize = Boolean.FALSE;
    /**
     * 是否用作订阅
     */
    private Boolean usedSubscribe = Boolean.FALSE;
    /**
     * 优先级
     */
    private Integer priority = 0;
    /**
     *
     */
    private String platform;

    private String firmSpecific;

    private String remark;

    private String forPay;

    private Boolean enable;
}
